package com.h5lib.server;


/**
 * 依赖注入的App
 * @author farmer 
 *
 */
public abstract class DiApp {
	
	protected String[] args;
	
	public DiApp(String[] args) throws DiException{
		this.args = args==null?new String[]{}:args;
		initDi();
        Di.initDi();
		startApp();
	}
	
	public abstract void initDi() throws DiException;
	
	public abstract void startApp();
}
